#ifndef CPURANKPLUGIN_H
#define CPURANKPLUGIN_H

#include <cpuinfobrowser.h>
#include <ztbox.h>

class CpuRankPlugin : public ZTBoxInterface
{
    Q_OBJECT
    Q_PLUGIN_METADATA(IID ZTBoxInterface_IID)
    Q_INTERFACES(ZTBoxInterface)

    // ZTBoxInterface interface
public:
    QString PluginName() override {
        return ">CpuRank";
    };
    bool PluginxAlwaysDisplay() override {
        return true;
    };
    bool pluginAutoLoader() override {
        return false;
    };
    QWidget *pluginAutoLoaderProcess() override {
        static auto obj = new CpuInfoBrowser;
        return obj;
    };
    bool pluginShowResetPosistion() override {
        return true;
    };
};

#endif // CPURANKPLUGIN_H
